import request from '@/utils/request'

// 查询存货入库列表
export function listInventoryInbound(query) {
  return request({
    url: '/InventoryInbound/InventoryInbound/list',
    method: 'get',
    params: query
  })
}

// 查询存货入库详细
export function getInventoryInbound(id) {
  return request({
    url: '/InventoryInbound/InventoryInbound/' + id,
    method: 'get'
  })
}

// 新增存货入库
export function addInventoryInbound(data) {
  return request({
    url: '/InventoryInbound/InventoryInbound',
    method: 'post',
    data: data
  })
}

// 修改存货入库
export function updateInventoryInbound(data) {
  return request({
    url: '/InventoryInbound/InventoryInbound',
    method: 'put',
    data: data
  })
}

// 删除存货入库
export function delInventoryInbound(id) {
  return request({
    url: '/InventoryInbound/InventoryInbound/' + id,
    method: 'delete'
  })
}
